/**
 * @description 地址模型
 * @author boen
 */

const mongoose = require('../db/db')

const Schema = mongoose.Schema({
    username: {
        type: String,
        require: true
    },
    city: {
        type: String,
    },
    department: {
        type: String,
    },
    houseNumber: {
        type: String,
    },
    name: {
        type: String,
        require: true
    },
    phone: {
        type: String,
        require: true
    },
}, {
    timestamps: true
})

const Address = mongoose.model('address', Schema)

module.exports = Address